/**
 * @description 以 TipBox（有尖头指向）样式显示
 */
Rsd.define('Rsd.container.TipBox', {
    extend: 'Rsd.container.Component',
    requires: [],
    xtype:'tip-box',
    ctrlTagName: 'div',
    floating:true,
    html:'',
    constructor: function TipBox(config) {
        config = config || {};
        this.apply(config);
        this.header.visible = true;
        this.header.space = 0;
        switch(this.header.position)
        {
            case 'top':
            case 'bottom':
            {
                this.header.height = 16; 
                break;
            }
            case 'left':
            case 'right':
            {
                this.header.width = 16;
                break;
            }
        }
    },
    /**
     * 
     */
    onAfterInit:function onAfterInit()
    {
        this.callParent();
      
        this.dom.classList.add('x-rsd-tip');
        //console.log(this.header);

        var _box = this.body.element;
        _box.classList.add('x-box');

        var _tip =  this.header.element; 
         
        _tip.classList.add('x-tip-'+this.header.position);


    }, 
});